import {take,select} from 'redux-saga/effects';

export default function* watchAndLogSaga(){
  while(true){
      //监听所有的命令动作 actiontype
    let action = yield take('*');
    const state = yield select();
    console.log(action,state);
  }
}